package com.zhaoyu.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaoyu.model.article.dto.ArticleHomeDto;
import com.zhaoyu.model.article.dto.ArticleInfoDto;
import com.zhaoyu.model.article.pojos.ApArticle;
import com.zhaoyu.model.common.dtos.ResponseResult;

/**
 * ApArticle(APP文章)
 */
public interface ApArticleService extends IService<ApArticle> {

    /**
     * 根据参数加载文章列表
     * @param loadType 1为加载更多 2为加载最新
     */
    ResponseResult load(Short loadType, ArticleHomeDto articleHomeDto);

    /**
     * 加载文章详情
     */
    ResponseResult loadApArticleInfo(ArticleInfoDto articleInfoDto);

}